//
//  ProgramaModel.m
//  花花时尚
//
//  Created by 霍文轩 on 15/8/27.
//  Copyright (c) 2015年 霍文轩. All rights reserved.
//

#import "ProgramaModel.h"

@implementation ProgramaModel

-(void)dealloc{
    [_ename release];
    [_name release];
    [_imguri release];
    [_id release];
    [super dealloc];
}
- (void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:self.ename forKey:@"ename"];
    [aCoder encodeObject:self.name forKey:@"name"];
    [aCoder encodeObject:self.id forKey:@"id"];
    [aCoder encodeObject:self.imguri forKey:@"imguri"];
}
- (id)initWithCoder:(NSCoder *)aDecoder{
    self = [super init];
    if(self){
        self.ename = [aDecoder decodeObjectForKey:@"ename"];
        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.id = [aDecoder decodeObjectForKey:@"id"];
        self.imguri = [aDecoder decodeObjectForKey:@"imguri"];
    }
    return self;
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
@end
